<?php

namespace App\Library\Requests\Plug;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\MediasImgRule;
use App\Library\Rules\MediaVideoRule;
use App\Library\Rules\ShopProductSpecNumbersRule;

class PlugAddRequest extends BaseDTORequest
{
    public function rules(): array
    {
        $array = [
            'product_name' => 'required|string|max:255',
            'plug_cate' => 'required|integer|min:1',
            'product_label' => 'nullable|string|max:255',
            'product_note' => 'nullable|string|max:255',
            'content' => 'nullable|string|max:255',
            'shelf_day' => 'required|integer|min:1',
            'plug_hour' => 'required|integer|min:1',
            'plug_num' => 'required|integer|min:1',
            'product_special_start_time' => 'nullable|integer|min:0',
        ];
        return $array;
    }
}
